<div class="isi">



    <?php
    $atr = array('id' => 'formID',
        'class' => 'formular');
    echo form_open_multipart('admin_identitas_website/simpan', $atr);

    foreach ($list as $lt) {
        if ($lt->id == 1) {
            $nama_perusahaan = $lt->value;
        }
        if ($lt->id == 2) {
            $alamat_perusahaan = $lt->value;
        }
        if ($lt->id == 3) {
            $telp_perusahaan = $lt->value;
        }
        if ($lt->id == 4) {
            $email = $lt->value;
        }
        if ($lt->id == 5) {
            $nama_website = $lt->value;
        }
        if ($lt->id == 6) {
            $logo_website = $lt->value;
        }
        if ($lt->id == 7) {
            $title_website = $lt->value;
        }
        if ($lt->id == 8) {
            $keyword_website = $lt->value;
        }
        if ($lt->id == 9) {
            $url_facebook = $lt->value;
        }
        if ($lt->id == 10) {
            $url_twitter = $lt->value;
        }
        if ($lt->id == 11) {
            $info_perusahaan = $lt->value;
        }
    }
    ?> 
    <table width="100%">

        <tr>
            <td width="15%"><p> Nama Perusahaan </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="50" name="nama_perusahaan" id="nama_perusahaan" class="validate[maxSize[45]] text-input" value="<?php echo $nama_perusahaan ?>" /> </td>
        </tr> 
        <tr>
            <td width="15%"><p> Alamat Perusahaan </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="60" name="alamat_perusahaan" id="alamat_perusahaan" class="validate[maxSize[60]] text-input" value="<?php echo $alamat_perusahaan ?>" /> </td>
        </tr> 
        <tr>
            <td width="15%"><p> Telp Perusahaan </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="20" name="telp_perusahaan" id="telp_perusahaan" class="validate[maxSize[20]] text-input" value="<?php echo $telp_perusahaan ?>" /> </td>
        </tr> 
        <tr>
            <td width="15%" style="vertical-align: top;"><p> Info Singkat Perusahaan</p> </td>
            <td style="vertical-align: top;"><p> : </p> </td>
            <td> 
                <textarea cols="60" rows="6" name="info_perusahaan" id="info_perusahaan" class="validate[maxSize[400]] text-input"><?php echo $info_perusahaan ?></textarea>
                <br/>
                <em>*) bisa menggunakan tag html seperti &lt;br/&GT;,  &lt;i&GT;,  &lt;strong&GT; dan lainya.</em>
            </td>
        </tr>
        <tr>
            <td width="15%"><p> Email </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="30" name="email" id="email" class="validate[custom[email]] text-input"  value="<?php echo $email ?>" /> </td>
        </tr> 
        <tr>
            <td width="15%"><p> URL Website </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="30" name="nama_website" id="nama_website" class="validate[custom[url]] text-input"  value="<?php echo $nama_website ?>" /> </td>
        </tr>   
        <tr>
            <td width="15%"><p> URL Facebook </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="30" name="url_facebook" id="url_facebook" class="validate[custom[url]] text-input"  value="<?php echo $url_facebook ?>" /> </td>
        </tr>   
        <tr>
            <td width="15%"><p> URL Twitter </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="30" name="url_twitter" id="url_twitter" class="validate[custom[url]] text-input"  value="<?php echo $url_twitter ?>" /> </td>
        </tr>   

        <tr>
            <td width="15%"><p> Logo Website </p> </td>
            <td><p> : </p> </td>
            <td> <input type="file" size="30" name="logo_website" id="logo_website" />  
                <?php
                if ($logo_website != "") {
                    echo "<br/><img src='" . base_url() . "uploads/file/" . $logo_website . "'/><br/>";
                    echo anchor("admin_identitas_website/delete_image/$logo_website", "(Delete Logo Website)") . "<br/>";
                }
                ?>
            </td>
        </tr>
        <tr>
            <td width="15%"><p> Title Website </p> </td>
            <td><p> : </p> </td>
            <td> <input type="text" size="50" name="title_website" id="title_website" class="validate[maxSize[50]] text-input"  value="<?php echo $title_website ?>" /> </td>
        </tr>
        <tr>
            <td width="15%" style="vertical-align: top;"><p> Keyword Website </p> </td>
            <td style="vertical-align: top;"><p> : </p> </td>
            <td> 
                <textarea cols="50" rows="4" name="keyword_website" id="keyword_website" class="validate[maxSize[400]] text-input"><?php echo $keyword_website ?></textarea>
                <br/>
                <em>*) Pisahkan dengan koma</em>
            </td>
        </tr>


    </table>
    <br/>
    <input type="submit" value="         Simpan       " class="button"/>
    <div class="clear"></div>

</form>

</div>



